import service from "@/utils/fetch";
const post = {
  //获取验证码
  authCode(params) {
    return service({
      method: "get",
      data: params,
      url: "/auth/code"
    });
  },

  // 登录
  login(params) {
    return service({
      method: "post",
      data: params,
      url: "/auth/login"
    });
  },

  // 获取用户信息
  authInfo(params) {
    return service({
      method: "get",
      data: params,
      url: "/auth/info"
    });
  },

  // 退出登录
  logout(params) {
    return service({
      method: "delete",
      data: params,
      url: "/auth/logout"
    });
  },


  // 商户注册
  sellerRegister(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/tenant/register"
    });
  },
};

export default post;
